package com.views.mysmartphone;

import com.actionbarsherlock.app.SherlockActivity;
import com.actionbarsherlock.view.MenuItem;
import com.actionbarsherlock.view.SubMenu;
import com.actionbarsherlock.view.Menu;
import android.content.Intent;
import android.os.Bundle;

public class Main extends SherlockActivity {
    
	
	public static int THEME = R.style.Theme_Sherlock;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
       
        Intent i =new Intent();
        i.setClass(this,  SearchViews.class);
        startActivity(i);
    }
    

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        SubMenu sub = menu.addSubMenu("Theme");
        sub.add(0, R.style.Theme_Sherlock, 0, "Default");
        sub.add(0, R.style.Theme_Sherlock_Light, 0, "Light");
        sub.add(0, R.style.Theme_Sherlock_Light_DarkActionBar, 0, "Light (Dark Action Bar)");
        sub.getItem().setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS | MenuItem.SHOW_AS_ACTION_WITH_TEXT);
		return true;
    } 
    
    protected Intent browseIntent() {
        Intent result = new Intent();
        result.setClass(this, SearchViews.class);
        return result;
    }


}
